package com.rupertjones.globalcron.resources;

import org.brownflat.dbinit.upgrade.Upgrade;
import org.springframework.stereotype.Component;

/**
 * <p>&copy Rupert Jones 2011,2012</p>
 *
 * @author rup
 */
@Component
public class Upgrade0014Version implements Upgrade {
    @Override
    public int getSequence() {
        return 14;
    }

    @Override
    public String getSql() {
        return "ALTER TABLE `job`\n" +
                "ADD COLUMN `version` INT NOT NULL DEFAULT 0;";
    }

    @Override
    public String getName() {
        return "Add version to job";
    }
}
